<?php

namespace App\Containers\AppSection\Dadata\Actions;

use App\Containers\AppSection\Dadata\Tasks\SuggestDadataTask;
use App\Ship\Parents\Actions\Action;
use App\Ship\Parents\Requests\Request;

class SuggestDadataAction extends Action
{
    public function run(Request $request)
    {
        return app(SuggestDadataTask::class)->run($request->getInputByKey('name'), $request->getInputByKey('query'), $request->getInputByKey('count'), $request->getInputByKey('kwargs'));
    }
}
